<?php declare(strict_types=1);
/**
 * @author      xianganyall <xianganyall@gmail.com>
 * @copyright   2023-2025 owner
 **/

namespace Srv\Scripts\Cronds;

use Srv\Libs\Boot;
use Srv\Libs\Common\CommTime;
use Srv\Libs\Storage\DataMysql;
use Srv\Libs\Storage\DataRedis;
use Srv\Libs\Tools\ShellPrint;

require_once dirname(__DIR__, 2).'/Libs/Boot.php';
Boot::runConf('');

// 定时单次执行
echo CommTime::getString('Y-m-d H:i:s')."\n";
$DbAuto             = DataMysql::tag('auto', 'DB_SCRIPT');
$CcAuto             = DataRedis::tag('auto', 'CC_SCRIPT');
ShellPrint::printSuccessString('ok');
